{% extends "manager/base.html" %}

{% block content %}
    <div class="mb-8">
        <h2 class="mb-2">数据管理</h2>
    </div>
    <table class="table table-striped">

        <thead>
        <tr>
            <th>表名</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {% for table,desc in tables %}
            <tr>
                <td>{{ desc }}</td>
                <td>
                    <a href="{% url 'table_detail' table_name=table %}" class="btn btn-primary btn-sm">查看数据</a>
                    <a href="{% url 'add_record' table_name=table %}" class="btn btn-success btn-sm">增加数据</a>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
{% endblock %}